Set the Compilation Options
You can open the PLC"Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events options with the icon.
If you want step-by-step debugging to be available during simulation or online testing, you need to select the Debug compiling mode. If step-by-step debugging is no longer required, select the Release compiling mode in order to give highest performance to your application.
When you incorporate additional statements (such as trace outputs) in your code, you must select the Debug compiling mode so that they are taken into consideration (in RELEASE mode, those statements are not included).
- For Conditional Compiling, Conditional Compiling
- For Online Changes, PLC Online Change
Code generation
There are two code compilation options, Normal and Optimized.
- Normal code allows for use of all PLC features in the KAS IDE"Integrated development environment" An integrated development environment is a type of computer software that assists computer programmers in developing software. IDEs normally consist of a source code editor, a compiler and/or interpreter, build-automation tools, and a debuggerand RuntimeIn computer science, runtime (or run-time) describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time). Within KAS, runtime also refers to the virtual machine that manage the program written in a computer language while it is running.
- Optimized code allows for faster PLC execution with the following limitations:
- Debug features are disabled, including breakpoints and step-by-step debugging.
- PLC Online Change is unavailable.
- WAIT / WAIT_TIME are not supported.
- Supported by AKD PDMM and PCMM controllers.
Normal code generation creates P-codeP-code machine or pseudo-code machine is a specification of a CPU whose instructions are expected to be executed in software rather than in hardware. Programs that have been translated to p-code are executed (interpreted) by a software program that emulates the behavior of the CPU specification and executes inside a virtual machine.
Size constraints: The P-code is smaller than the same program translated to "C-code".
For development and debugging: Normal code allows you to set breakpoints, step through PLC code, and use online change. Additionally, as normal code is runtimeIn computer science, runtime (or run-time) describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time). Within KAS, runtime also refers to the virtual machine that manage the program written in a computer language while it is running checks that would be harder to implement with optimized code.
, the interpreter can apply many additional-
- Using Normal code is recommended in order to take advantage of all KAS PLC features, unless the controller is unable to meet performance requirements.